import request from '@/utils/request'

// 查询诚信事迹列表
export function listSincerity(query) {
  return request({
    url: '/system/sincerity/list',
    method: 'get',
    params: query
  })
}

// 查询诚信事迹详细
export function getSincerity(id) {
  return request({
    url: '/system/sincerity/' + id,
    method: 'get'
  })
}

// 新增诚信事迹
export function addSincerity(data) {
  return request({
    url: '/system/sincerity',
    method: 'post',
    data: data
  })
}

// 修改诚信事迹
export function updateSincerity(data) {
  return request({
    url: '/system/sincerity',
    method: 'put',
    data: data
  })
}

// 删除诚信事迹
export function delSincerity(id) {
  return request({
    url: '/system/sincerity/' + id,
    method: 'delete'
  })
}
